<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
// Require the base controller
require_once( JPATH_COMPONENT.DS.'controller.php' );
// Require specific controller if requested
if($controller = JRequest::getWord('controller')) {
    $path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php';
    //JPATH_LIBRARIES
    if (file_exists($path)) {
        require_once $path;
    } else {
        $controller = '';
    }
}
// Create the controller
$classname    = 'OrdersController'.$controller;
$controller   = new $classname( );
// Perform the Request task
$controller->execute( JRequest::getVar( 'task' ) );
// Redirect if set by the controller
$controller->redirect();
/*
require_once( JApplicationHelper::getPath( 'admin_html' ) );

switch ($task)
{
	case 'taobao':
		HTML_Orders_misc::orders_taobao();
		break;
}
*/
?>